function code(){
	var sum = "";
	for (var i = 0; i < 6; i++) {
		var j = Math.floor(Math.random()*10)+"";
		sum += j;
	}
	document.getElementById("code").value = sum;
}

function jumpToReg(){

	//页面跳转
	window.location.href = "/pages/reg.jsp";
}


	
function loginVerify(){
	
	var accountNum = $('#phone').val();
	var passwordNum = $('#password').val();
	var codeNum = $('#vc').val();
	
	if(accountNum == null || accountNum == ""){
		alert('账号不能为空');
		return;
	}
	
	
	else if(passwordNum == null || passwordNum == ""){
		alert('密码不能为空');
		return;
	}
	
	
	else if(codeNum == null || codeNum == ""){
		alert('验证码不能为空');
		return;
	}

	$("#log").submit();

	
}
	
	
